<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>包装类</title>
	</head>
	<body>
		<script type="text/javascript">

			var str = '123456';
			var str1 = str;
			str = '45678';
			console.log(str);
			console.log(str1);
			
			var str2 = new String("123456");
			str2.name = "天明";
			console.log(str2);
			
			var boolean	= new Boolean(false);
			var boolea2 = new Boolean(false);
			console.log(boolean);

			var num = new Number(123456);
			console.log(num);

			






		</script>
	</body>
</html>